package com.lsl.feign;

import com.lsl.dto.UserDTO;
import com.lsl.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "vdm-account-service", path = "/user-service")
public interface UserFeignClient {
    
    @GetMapping("/findUser/id/{id}")
    Result<UserDTO> getUserById(@PathVariable("id") String id);
}
